import App from './App';

import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

 //全局变量   配置
import publics from './configure/public.js';  
Vue.prototype.publics = publics

 //网络请求
import configure from './configure/request.js';  
Vue.prototype.configure = configure

 //公共接口
import jiekou from './configure/jiekou.js';
Vue.prototype.jiekou = jiekou

 //分享
import share from './configure/share.js';  
Vue.prototype.share = share

//头部
import header from './components/header.vue';  
Vue.component('Header',header)

//加载
import requestLoading   from './components/jiazai.vue';
Vue.component('requestLoading', requestLoading)

//暂无数据
import zanwushuju from './components/zanwushuju.vue';  
Vue.component('zanwushuju',zanwushuju)

// // 上传图片
import shangchuan from './configure/shangchuan.js'; 
Vue.prototype.shangchuan = shangchuan

// 弹出框
import tanchu from "./components/tanchu.vue"
Vue.component('tanchu', tanchu)

// 弹出框
import tanchus from "./components/tanchus.vue"
Vue.component('tanchus', tanchus)

import levelLinkage from "@/components/three-level-linkage/linkage.nvue"
Vue.component('levelLinkage', levelLinkage)

import unibadge from "@/components/uni-badge/uni-badge.vue"
Vue.component('unibadge', unibadge)

//未登录时的弹框
import login   from './components/login.vue';
Vue.component('Login', login) 

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif